﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace NCLCustomerManagement.UI.Models.ProductCategory
{
    public class ProductModel
    {



        private int _Id;

        private string _ProductName;

        private string _Madein;

        private string _Description;

        private string _PrimaryUnit;

        private string _SecondaryUnit;

        private decimal _CurrentSaleUnitPrice;

        private double _QuantityPerUnit;

        private bool _Available;

        private double _UsedPerDay;

        private string _ImageUrl;

        private System.Nullable<int> _ProductCategoryId;





        public ProductModel()
        {


        }

        public string TotalUseTimeString { get; set; }
       
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if ((this._Id != value))
                {

                    this._Id = value;

                }
            }
        }

        [Required]
        [Display(Name="Tên SP")]
        public string ProductName
        {
            get
            {
                return this._ProductName;
            }
            set
            {
                if ((this._ProductName != value))
                {

                    this._ProductName = value;

                }
            }
        }

        [Display(Name = "Xuất xứ")]
        public string Madein
        {
            get
            {
                return this._Madein;
            }
            set
            {
                if ((this._Madein != value))
                {

                    this._Madein = value;

                }
            }
        }

        [Display(Name = "Mô tả")]
        public string Description
        {
            get
            {
                return this._Description;
            }
            set
            {
                if ((this._Description != value))
                {

                    this._Description = value;

                }
            }
        }

        [Required]
        [Display(Name = "Đơn vị")]
        public string PrimaryUnit
        {
            get
            {
                return this._PrimaryUnit;
            }
            set
            {
                if ((this._PrimaryUnit != value))
                {

                    this._PrimaryUnit = value;

                }
            }
        }

        [Required]
        [Display(Name = "Đơn vị 2")]
        public string SecondaryUnit
        {
            get
            {
                return this._SecondaryUnit;
            }
            set
            {
                if ((this._SecondaryUnit != value))
                {

                    this._SecondaryUnit = value;

                }
            }
        }

        [Display(Name = "Giá bán")]              
        public decimal CurrentSaleUnitPrice
        {
            get
            {
                return this._CurrentSaleUnitPrice;
            }
            set
            {
                if ((this._CurrentSaleUnitPrice != value))
                {


                    this._CurrentSaleUnitPrice = value;

                }
            }
        }

        [Display(Name="Nhóm")]
        public string ProductCategoryName { get; set; }

        [Required]
        
        public double QuantityPerUnit
        {
            get
            {
                return this._QuantityPerUnit;
            }
            set
            {
                if ((this._QuantityPerUnit != value))
                {


                    this._QuantityPerUnit = value;


                }
            }
        }

        [Display(Name = "Còn hàng")]
        public bool Available
        {
            get
            {
                return this._Available;
            }
            set
            {
                if ((this._Available != value))
                {


                    this._Available = value;


                }
            }
        }

        [Required]
        [Display(Name = "Liều dùng/ngày")]
        public double UsedPerDay
        {
            get
            {
                return this._UsedPerDay;
            }
            set
            {
                if ((this._UsedPerDay != value))
                {


                    this._UsedPerDay = value;


                }
            }
        }

        public string ImageUrl
        {
            get
            {
                return this._ImageUrl;
            }
            set
            {
                if ((this._ImageUrl != value))
                {


                    this._ImageUrl = value;


                }
            }
        }

        public System.Nullable<int> ProductCategoryId
        {
            get
            {
                return this._ProductCategoryId;
            }
            set
            {
                if ((this._ProductCategoryId != value))
                {



                    this._ProductCategoryId = value;


                }
            }
        }






    }
}